package cn.edu.neusoft.practice.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.edu.neusoft.practice.po.Doctor;

@Mapper
public interface DoctorMapper extends BaseMapper<Doctor>{

	@Select("select * from doctor")	
	List<Doctor> getAllDoctors();

	@Select("select t.* from doctor t where t.depart_id2=#{departId2}")
	List<Doctor> getDoctorsByDepartId2(Doctor doctor);

	@Update("update doctor set recommend=#{recommend} where doc_id=#{docId}")
	int updateRecommend(Doctor doctor);

}
